package cn.tedu.system.oa.notice.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.AccessLevel;
import lombok.Data;
import lombok.experimental.FieldDefaults;

import java.util.Date;

@Data
@FieldDefaults(level = AccessLevel.PRIVATE)
@TableName("notices")
public class Notice {
    @ApiModelProperty(value = "公告id")
    @TableId(type = IdType.AUTO)
    Integer id;
    @ApiModelProperty(value = "公告标题")
    String noticeTitle;
    @ApiModelProperty(value = "公告内容")
    String noticeContent;
    @ApiModelProperty(value = "公告状态")
    Integer status;
    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    Date createTime;
    @ApiModelProperty(value = "修改时间")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    Date updateTime;
    @ApiModelProperty(value = "备注")
    String remark;
    @ApiModelProperty(value = "部门id")
    Integer deptId;
}
